package com.changgou.queue;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component

public class smsQueue {

    @RabbitHandler
    @RabbitListener(queues = {"sms.fanout.queue"})
    public void smshandler(String maseeage){
        System.out.println(maseeage);
    }
}
